--- configure.orig	Thu May 16 21:59:15 2002
+++ configure	Thu May 16 22:01:57 2002
@@ -7365,8 +7365,6 @@ else
   GX_LIBS="$GTK_LIBS"
 fi
 
-CPPFLAGS="$CPPFLAGS -I$includedir -I$prefix/include"
-
 SUPPORT_LIBS=""
 
 if test "x$enable_shm" = "xyes"; then
@@ -7670,8 +7668,8 @@ rm -f conftest*
 fi
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  TIFFLIBS="-ltiff"
-    SUPPORT_LIBS="$SUPPORT_LIBS -ltiff"; cat >> confdefs.h <<\EOF
+  TIFFLIBS="-ltiff -ljpeg -lz"
+    SUPPORT_LIBS="$SUPPORT_LIBS -ltiff -ljpeg -lz"; cat >> confdefs.h <<\EOF
 #define HAVE_LIBTIFF 1
 EOF
 
